<form name="form" class="g-form" novalidate ng-submit="stepOneNext(form.$valid)">

    <h4>解决方案的重要信息，准确的填写，将有助于需求企业快速了解本方案</h4>

    <div class="form-group form-group-sm row" ng-class="{'has-error': clicked[0] && form.title.$invalid}">
        <label class="col-xs-offset-2 col-xs-8">
            <strong>方案名称:</strong>
            <small>请概括简要地填写解决方案名称</small>
        </label>

        <div class="col-xs-offset-2 col-xs-8">
            <input class="form-control" type="text" ng-model="formData.title"
                   name="title" title="请概括简要地填写解决方案名称"
                   required maxlength="40" placeholder="请概括简要地填写解决方案名称"/>
        </div>
        <div class="col-xs-2" ng-messages="form.title.$error" ng-show="clicked[0]">
            <span class="error-tips" ng-messages-include="my-custom-messages"></span>
        </div>
    </div>

    <div class="form-group form-group-sm row" ng-class="{'has-error': clicked[0] && form.origin.$invalid}">

        <label class="col-xs-offset-2 col-xs-8">
            <strong>技术来源:</strong>
            <small>请选择您技术的来源地</small>
        </label>

        <div class="col-xs-offset-2 col-xs-8">
            <select ng-model="formData.origin" class="form-control">
                <!--<option value="" disabled selected>Select your option</option>-->
                <option value="" disabled selected> 请选择您技术的来源地</option>
                <option ng-repeat="option in origins track by $index" value="{{option}}" ng-bind="option"></option>
            </select>
        </div>

        <div class="col-xs-2" ng-messages="form.origin.$error" ng-show="clicked[0]">
            <span class="error-tips" ng-messages-include="my-custom-messages"></span>
        </div>

    </div>

    <div class="form-group form-group-sm row" ng-class="{'has-error': clicked[0] && form.technologyForm.$invalid}">
        <label class="col-xs-offset-2 col-xs-8">
            <strong>交付形式:</strong>
            <small>解决方案应用的交付形式</small>
        </label>

        <div class="col-xs-offset-2 col-xs-8">
            <label class="radio-inline">
                <input type="radio" name="form" ng-model="formData.technologyForm" value="产品" required> 产品
            </label>
            <label class="radio-inline">
                <input type="radio" name="form" ng-model="formData.technologyForm" value="工艺" required> 工艺
            </label>
            <label class="radio-inline">
                <input type="radio" name="form" ng-model="formData.technologyForm" value="整体方案" required>
                整体方案
            </label>
        </div>
        <div class="col-xs-2" ng-messages="form.technologyForm.$error" ng-show="clicked[0]">
            <span class="error-tips" ng-messages-include="my-custom-messages"></span>
        </div>
    </div>

    <div class="form-group form-group-sm row" ng-class="{'has-error': clicked[0] && form.patentState.$invalid}">
        <label class="col-xs-offset-2 col-xs-8">
            <strong>有无专利:</strong>
            <small>专利情况</small>
        </label>

        <div class="col-xs-offset-2 col-xs-8">
            <label class="radio-inline">
                <input type="radio" name="patentState" ng-model="formData.patentState" value="无专利" required> 无专利
            </label>
            <label class="radio-inline">
                <input type="radio" name="patentState" ng-model="formData.patentState" value="有专利" required> 有专利
            </label>
        </div>
        <div class="col-xs-2" ng-messages="form.patentState.$error" ng-show="clicked[0]">
            <span class="error-tips" ng-messages-include="my-custom-messages"></span>
        </div>
    </div>

    <div class="form-group form-group-sm row" ng-class="{'has-error': clicked[0] && form.maturity.$invalid}">
        <label class="col-xs-offset-2 col-xs-8">
            <strong>技术成熟度:</strong>
            <small>技术所处的研发、产业化阶段</small>
        </label>

        <div class="col-xs-offset-2 col-xs-8">
            <label class="radio-inline">
                <input type="radio" name="maturity" ng-model="formData.maturity" value="小试" required> 小试
            </label>
            <label class="radio-inline">
                <input type="radio" name="maturity" ng-model="formData.maturity" value="中试" required> 中试
            </label>
            <label class="radio-inline">
                <input type="radio" name="maturity" ng-model="formData.maturity" value="生试" required> 生试
            </label>
        </div>
        <div class="col-xs-2" ng-messages="form.maturity.$error" ng-show="clicked[0]">
            <span class="error-tips" ng-messages-include="my-custom-messages"></span>
        </div>
    </div>

    <div class="form-group form-group-sm row"
         ng-class="{'has-error': clicked[0] && formData.cooperationWays.length===0 }">
        <label class="col-xs-offset-2 col-xs-8">
            <strong>合作方式:</strong>
            <small>技术所属方可接受的合作方式，可多选</small>
        </label>

        <div class="col-xs-offset-2 col-xs-8">
            <label class="checkbox-inline" ng-repeat="value in technologyFields.cooperationWays">
                <input type="checkbox" name="cooperationWays" value="{{value}}"
                       ng-checked="formData.cooperationWays.indexOf(value)!==-1"
                       meta-form-checkbox="formData.cooperationWays">
                {{value}}
            </label>
        </div>
        <div class="col-xs-2">
            <span class="error-tips" ng-show="clicked[0] && formData.cooperationWays.length===0">至少选1个</span>
        </div>
    </div>

    <div class="form-group form-group-sm form-inline row"
         ng-class="{'has-error': clicked[0] && form.fundMin.$invalid && form.fundMax.$invalid}">
        <label class="col-xs-offset-2 col-xs-8">
            <strong>合作价格:</strong>
            <small>保密信息，仅供项目负责人选择方案时参考</small>
        </label>

        <div class="col-xs-offset-2 col-xs-8">
            <input class="form-control sm" type="number" ng-model="formData.cooperationPrice[0]"
                   name="fundMin" title="满意额度"
                   required placeholder="最低底线" min="0"/>
            <span>&nbsp;&nbsp;万 &nbsp;&nbsp;- &nbsp;&nbsp;</span>
            <input class="form-control sm" type="number" ng-model="formData.cooperationPrice[1]"
                   name="fundMax" title="满意额度"
                   required placeholder="满意额度" min="0"
                   meta-form-max-than="formData.cooperationPrice[0]"/>
            <span>&nbsp;&nbsp;万元</span>
        </div>
        <div class="col-xs-2" ng-messages="form.fundMax.$error" ng-show="clicked[0]">
            <span class="error-tips" ng-messages-include="my-custom-messages"></span>
        </div>
    </div>

    <div class="form-group" style="text-align:center">
        <button class="btn btn-info btn-meta-14 btn-meta-blue" type="submit">下一步</button>
    </div>
</form>
